<?php
/*
 * Created on 2013-9-20
 *
 * To change the template for this generated file go to
 * Window - Preferences - PHPeclipse - PHP - Code Templates
 */

	include ("conn.php");

	$tableName = 'userInfo';
	$name = $_REQUEST['name'];
	$password = $_REQUEST['password'];
	
	$query = "select count(*) as total from $tableName where name='$name' and password = '$password'";
	$res = $mysql ->getData( $query );
	
	if($res[0]['total']>0)
		echo '登录成功~';
	else
		echo '登录失败~';

?>
